<?php
require_once "config.php";
$result = $mysql->query("select * from dyspw_weblink");
$rows = $result->fetch_all(MYSQLI_ASSOC);

foreach ($rows as $row){
    $num = rand(1,200);
    $up=$mysql->query("update dyspw_weblink set hits=hits+{$num} where id={$row['id']}");

}
